package com.twoGroup.boot.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @ClassName
 * @Description TODO
 * @Author Xuyujie
 * @Date 2021/6/15 20:37
 * @Version 1.0
 **/
@ApiModel(value = "评论图片的实体类")
public class CommentImg {
    @ApiModelProperty(value = "对应图片的id")
    private Integer imgId;
    @ApiModelProperty(value = "对应评论的id",required = true)
    private Integer commentId;
    @ApiModelProperty(value = "对应图片的远程地址",required = true)
    private String commentImg;

    public CommentImg() {
    }

    public CommentImg(Integer imgId, Integer commentId, String commentImg) {
        this.imgId = imgId;
        this.commentId = commentId;
        this.commentImg = commentImg;
    }

    public Integer getImgId() {
        return imgId;
    }

    public void setImgId(Integer imgId) {
        this.imgId = imgId;
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getCommentImg() {
        return commentImg;
    }

    public void setCommentImg(String commentImg) {
        this.commentImg = commentImg;
    }

    @Override
    public String toString() {
        return "CommentImg{" +
                "imgId=" + imgId +
                ", commentId=" + commentId +
                ", commentImg='" + commentImg + '\'' +
                '}';
    }
}
